xen/arm: Initial support for PSCI-0.2
authorSuravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Fri, 3 Oct 2014 14:31:10 +0000 (09:31 -0500)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 14 Oct 2014 09:19:39 +0000 (10:19 +0100)
commit4d3d72c0146776e7c8efe6e531561bcbdab1cea7
tree3dbaea42aba5b6912bd750cd00ea2e711394ce74
parentb095ec3d8828cbc063098d57be5fbf6d7dd2fac8
xen/arm: Initial support for PSCI-0.2

This patch adds SMC calls to suport a subset of PSCI-0.2 functions
(PSCI_VERSION, CPU_ON, SYSTEM_OFF, SYSTEM_RESET).

By default, the psci_init() will use PSCI-0.2. Otherwise, it will
use PSCI-0.1 if PSCI-0.2 fails or un-supported.

To add support for PSCI_VERSION, this patch replaces the "bool_t psci_available"
variable with "int psci_ver", which contains the PSCI_VERSION as described in the
PSCI-0.2 spec.

Signed-off-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/arm64/smpboot.c
xen/arch/arm/platform.c
xen/arch/arm/psci.c
xen/include/asm-arm/psci.h